Remove now useless snapshot implementations
authorTimm Bäder <mail@baedert.org>
Wed, 3 May 2017 09:14:28 +0000 (11:14 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:11 +0000 (21:27 -0400)
gtk/gtkfilechooserbutton.c
gtk/gtkfontbutton.c

index 7d3eba0357a794cf711c67e57d18bb13dd5f47bc..179cc22ee4306d882791abb89c120eacbd2d476a 100644 (file)
@@ -380,16 +380,6 @@ gtk_file_chooser_button_measure (GtkWidget       *widget,
                       minimum_baseline, natural_baseline);
 }
 
-static void
-gtk_file_chooser_button_snapshot (GtkWidget   *widget,
-                                  GtkSnapshot *snapshot)
-{
-  GtkFileChooserButton *button = GTK_FILE_CHOOSER_BUTTON (widget);
-  GtkFileChooserButtonPrivate *priv = gtk_file_chooser_button_get_instance_private (button);
-
-  gtk_widget_snapshot_child (widget, priv->child, snapshot);
-}
-
 static void
 gtk_file_chooser_button_size_allocate (GtkWidget     *widget,
                                        GtkAllocation *allocation)
@@ -427,7 +417,6 @@ gtk_file_chooser_button_class_init (GtkFileChooserButtonClass * class)
   widget_class->state_flags_changed = gtk_file_chooser_button_state_flags_changed;
   widget_class->measure = gtk_file_chooser_button_measure;
   widget_class->size_allocate = gtk_file_chooser_button_size_allocate;
-  widget_class->snapshot = gtk_file_chooser_button_snapshot;
 
   /**
    * GtkFileChooserButton::file-set:
index ee8e76d6224af769dbd9547618392cea3280b5f9..c7e0ea7a610dd131a2d61b0467e2caa83c2b4399 100644 (file)
@@ -462,16 +462,6 @@ gtk_font_button_measure (GtkWidget       *widget,
                       minimum_baseline, natural_baseline);
 }
 
-static void
-gtk_font_button_snapshot (GtkWidget   *widget,
-                          GtkSnapshot *snapshot)
-{
-  GtkFontButton *button = GTK_FONT_BUTTON (widget);
-  GtkFontButtonPrivate *priv = gtk_font_button_get_instance_private (button);
-
-  gtk_widget_snapshot_child (widget, priv->button, snapshot);
-}
-
 static void
 gtk_font_button_size_allocate (GtkWidget     *widget,
                                GtkAllocation *allocation)
@@ -499,7 +489,6 @@ gtk_font_button_class_init (GtkFontButtonClass *klass)
 
   widget_class->measure = gtk_font_button_measure;
   widget_class->size_allocate = gtk_font_button_size_allocate;
-  widget_class->snapshot = gtk_font_button_snapshot;
 
   klass->font_set = NULL;